package com.ktgj.flight.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ktgj.common.core.annotation.Excel;
import com.ktgj.common.core.web.domain.BaseEntity;

/**
 * 机票字典_舱位对象 cabin
 * 
 * @author ruoyi
 * @date 2021-11-05
 */
public class Cabin extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 舱位Id */
    private Long cabinId;

    /** 航空公司代码 */
    @Excel(name = "航空公司代码")
    private String airlinerId;

    /** 舱位等级ID */
    @Excel(name = "舱位等级ID")
    private Long cabinGradeId;

    /** 类型 */
    @Excel(name = "类型")
    private Long cabinType;

    /** 舱位 */
    @Excel(name = "舱位")
    private String cabin;

    /** 折扣 */
    @Excel(name = "折扣")
    private BigDecimal discount;

    /** $column.columnComment */
    @Excel(name = "折扣")
    private String eiitem;

    /** 启用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "启用时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cabinValidTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cabinInvalidTime;

    /** 是否启用 */
    @Excel(name = "是否启用")
    private Long isValid;

    /** 舱位说明 */
    @Excel(name = "舱位说明")
    private String cabinDesc;

    /** 服务信息 */
    @Excel(name = "服务信息")
    private String serveInformation;

    /** 起飞城市 */
    @Excel(name = "起飞城市")
    private String departure;

    /** 到达城市 */
    @Excel(name = "到达城市")
    private String arrival;

    /** 航班开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "航班开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date flightValidTime;

    /** 航班结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "航班结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date flightInvalidTime;

    public void setCabinId(Long cabinId) 
    {
        this.cabinId = cabinId;
    }

    public Long getCabinId() 
    {
        return cabinId;
    }
    public void setAirlinerId(String airlinerId) 
    {
        this.airlinerId = airlinerId;
    }

    public String getAirlinerId() 
    {
        return airlinerId;
    }
    public void setCabinGradeId(Long cabinGradeId) 
    {
        this.cabinGradeId = cabinGradeId;
    }

    public Long getCabinGradeId() 
    {
        return cabinGradeId;
    }
    public void setCabinType(Long cabinType) 
    {
        this.cabinType = cabinType;
    }

    public Long getCabinType() 
    {
        return cabinType;
    }
    public void setCabin(String cabin) 
    {
        this.cabin = cabin;
    }

    public String getCabin() 
    {
        return cabin;
    }
    public void setDiscount(BigDecimal discount) 
    {
        this.discount = discount;
    }

    public BigDecimal getDiscount() 
    {
        return discount;
    }
    public void setEiitem(String eiitem) 
    {
        this.eiitem = eiitem;
    }

    public String getEiitem() 
    {
        return eiitem;
    }
    public void setCabinValidTime(Date cabinValidTime) 
    {
        this.cabinValidTime = cabinValidTime;
    }

    public Date getCabinValidTime() 
    {
        return cabinValidTime;
    }
    public void setCabinInvalidTime(Date cabinInvalidTime) 
    {
        this.cabinInvalidTime = cabinInvalidTime;
    }

    public Date getCabinInvalidTime() 
    {
        return cabinInvalidTime;
    }
    public void setIsValid(Long isValid) 
    {
        this.isValid = isValid;
    }

    public Long getIsValid() 
    {
        return isValid;
    }
    public void setCabinDesc(String cabinDesc) 
    {
        this.cabinDesc = cabinDesc;
    }

    public String getCabinDesc() 
    {
        return cabinDesc;
    }
    public void setServeInformation(String serveInformation) 
    {
        this.serveInformation = serveInformation;
    }

    public String getServeInformation() 
    {
        return serveInformation;
    }
    public void setDeparture(String departure) 
    {
        this.departure = departure;
    }

    public String getDeparture() 
    {
        return departure;
    }
    public void setArrival(String arrival) 
    {
        this.arrival = arrival;
    }

    public String getArrival() 
    {
        return arrival;
    }
    public void setFlightValidTime(Date flightValidTime) 
    {
        this.flightValidTime = flightValidTime;
    }

    public Date getFlightValidTime() 
    {
        return flightValidTime;
    }
    public void setFlightInvalidTime(Date flightInvalidTime) 
    {
        this.flightInvalidTime = flightInvalidTime;
    }

    public Date getFlightInvalidTime() 
    {
        return flightInvalidTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cabinId", getCabinId())
            .append("airlinerId", getAirlinerId())
            .append("cabinGradeId", getCabinGradeId())
            .append("cabinType", getCabinType())
            .append("cabin", getCabin())
            .append("discount", getDiscount())
            .append("eiitem", getEiitem())
            .append("cabinValidTime", getCabinValidTime())
            .append("cabinInvalidTime", getCabinInvalidTime())
            .append("isValid", getIsValid())
            .append("cabinDesc", getCabinDesc())
            .append("serveInformation", getServeInformation())
            .append("departure", getDeparture())
            .append("arrival", getArrival())
            .append("flightValidTime", getFlightValidTime())
            .append("flightInvalidTime", getFlightInvalidTime())
            .toString();
    }
}
